<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>评论模块</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="../assets/css/comment/comment.css" />
  </head>
  <body>
    <div class="layui-card">
      <div class="layui-card-header">评论管理</div>
      <div class="layui-card-body">
        <table class="layui-table">
          <colgroup>
            <col width="100" />
            <col width="300" />
            <col />
            <col />
            <col />
          </colgroup>
          <thead>
            <tr>
              <th>ID</th>
              <th>评论人</th>
              <th>评论内容</th>
              <th>评论时间</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody id="tb"></tbody>
        </table>
      </div>
    </div>
    <script src="" type="text/html" id="commentTpl">
      {{each data v i}}
      <tr>
        <td>{{v.id}}</td>
        <td>{{v.uname}}</td>
        <td>{{v.content}}</td>
        <td>{{v.cdate|dateFormat}}</td>
        <td>
          <button type="button" class="layui-btn layui-btn-xs layui-btn-danger delBtn" data-id="{{v.id}}">删除</button>
        </td>
      </tr>
      {{/each}}
    </script>
    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/lib/template-web.js"></script>
    <script src="../assets/js/common.js"></script>
    <script src="../assets/js/comment/comment.js"></script>
  </body>
</html>
